<template>
  <div class="home">
     <div class="content">
        <h2 class="title">陕西省文物鉴定站民间收藏文物咨询鉴定须知</h2>
      <!--  <div class="weui-c-meta">
            <span class="weui-c-nickname"><a href="javascript:;">陕西省文物保护研究院</a></span>
            <em class="weui-c-nickname">2020-07-16</em>
        </div> -->
        <div class="article">
          <div class="section">
            <h3>咨询时间</h3>
            <p>线下鉴定咨询工作每月一次，时间为每月第一个星期五（如遇节假日顺延到第二个星期五）下午<strong>14:30 - 16:30</strong>。</p>
            </div>
            <div class="section">
            <h3>咨询地点</h3>
            <p>科技一路35号<strong>文物科技大厦5楼502室</strong>如遇特殊情况，具体时间、地点等更改信息会发布在陕西省文物保护研究院公众号巧手良医、华商报等公众媒体。</p>
            </div>
            <div class="section">
            <h3>咨询电话</h3>
            <p><strong>029-85360103</strong></p>
            </div>
        </div>
        <div class="confirm-btn"><van-button type="default" @click="goCommit">确定</van-button></div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  created () {
    this.getAuth()
  },
  methods: {
    getAuth () {
      const storeUserId = localStorage.getItem('userId')
      if (this.$route.query.userId || storeUserId) {
        const userId = this.$route.query.userId
        localStorage.setItem('userId', userId)
      } else {
        window.location.href = 'http://www.sxwby.com/home/api/check_auth'
      }
    },
    goCommit () {
      this.$router.push('commit')
    }
  }
}
</script>
<style scope>
.home{padding: 20px 15px;}
.article{margin: 30px 0 0;padding: 20px 15px 10px 0;border:1px solid #999;border-radius: 5px;}
.section h3{background-color: #761f1c; padding:5px 0 5px 5%;margin-bottom:20px;width:35%;border-radius:0 20px 20px 0 ;font-size:1em;padding-left:5%; color:#fff; }
.section p{text-indent: 0;padding-left:5%;}
.section p a{/*color:#761f1c;*/color:#333;}

</style>
<style>
.title{ text-align:center;margin-top:0;}
.confirm-btn{text-align:center;margin-top:30px;}
.confirm-btn .van-button{
  width:50%;
  background-color:#761f1c;
  color:#fff;
  letter-spacing:5px;
  border-radius: 10px;
  font-size:18px;
  border:1px solid #761f1c
}
</style>
